<?php
/**
 * 数据库PDO查询测试
 * 访问地址：http://192.168.33.10/CI/index.php/test_db/index
 * 
 */
  
class Test_db extends CI_Controller {

	function Test(){
		parent::__construct();
	}

	function index(){

		$this->load->database();
		$rs = $this->db->simple_query("select * from j_user limit 1");
		$result = $rs->fetchAll();
		print_r($result);
		
		// 载入视图
		//$this->load->view('users',$data);
		

	}
	
	function a(){
		return "a";
	}
}

